package com.doerit.laptops.util;

import java.util.ArrayList;
import java.util.List;

public class ListCompare {

	public static <T> List<T> getDifference(List<T> input1, List<T> input2) {

		List<T> differenceList = new ArrayList<T>();
		List<T> tempList = new ArrayList<T>();

		tempList.addAll(input1);
		tempList.retainAll(input2);

		differenceList.addAll(input2);
		differenceList.removeAll(tempList);

		return differenceList;

	}
}
